package com.earl.eatbao.dao.eatbao;

import com.earl.eatbao.commons.dao.BaseRepsitoty;
import com.earl.eatbao.domain.eatbao.OrderDetail;

import java.util.List;

public interface OrderDetailDao extends BaseRepsitoty<OrderDetail,Long>{

    /**
     * 通过订单项进行删除
     * @param orderId
     */
    void deleteByOrderId(Integer orderId);

    /**
     * 查询订单的关联项
     * @param orderId
     * @return
     */
    List<OrderDetail> findByOrderId(Integer orderId);
}
